<?php

namespace app\api\model;

use think\Model;

class WpsGoodsSku extends Model
{
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';

    // 表名
    protected $name = 'wps_goods_sku';

    public static function insertData($data)
    {
        $model = new self();
        $model->allowField(true)->saveAll($data);
    }

}
